﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            if (Session["username"] == null)
                Response.Redirect("login/login.aspx");
            else lUsername.Text = Session["username"].ToString();

        }

    }
    protected void lnkLogout_Click(object sender, EventArgs e)
    {
        Session.Clear();
         Response.Redirect("login/login.aspx");
    }
}
